<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});



// blog子域名绑定控制器
Route::domain('m.xs.com', '@m');
Route::domain('xs.com', '@index');






// Route::domain(['m.xs.com'], function () {
// 	// 动态注册域名的路由规则
// 	Route::rule('imgs/:id', 'm/img');
//
// });
//
// Route::domain(['xs.com'], function () {
// 	// 动态注册域名的路由规则
// 	Route::rule('updata', 'index/updata');
//
// });


